<?php 

include './function.php';

if(isset($_GET['id'])){
	$id = $_GET['id'];//接收到删除的数据

	$db = include './db.php';

	unset($db[$id]);

	$str = var_export($db,true);

	$str = "<?php return ".$str." ?>";

	file_put_contents('./db.php', $str);

	success('删除成功，返回首页','./index.php',3);

}else{
	error('ID没有传，请重新操作','./index.php',3);
}















 ?>